<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
         .w{
            width: 1200px;
            margin: 0 auto;
        }
        h1{
            margin-top: 200px;
            text-align: center;
        }
        table{
            border: 1px solid black;
            border-collapse: collapse;
            margin: auto;
            margin-top: px;

        }
        th,td{
            border: 1px solid black;
            padding: 10px 10px 10px 10px;
        }
    </style>
</head>
<body>
    <table>
        th
    </table>
    <script>
        let ze=+prompt('请输入您的总额')
        let df=+prompt('请输入您电费')
        let sf=+prompt('请输入您的水费')
        let wf=+prompt('请输入您的网费')
        let ye=ze-df-sf-wf
        document.write(`
        <div class="w">
        <h1>2023年3月支出</h1>
        <table>
        <tr>
        <th>银行卡总额</th>
        <th>水费</th>
        <th>电费</th>
        <th>网费</th>
        <th>银行卡余额</th>
        </tr>
        <tr>
            <td>${ze}元</td>
            <td>${sf}元</td>
            <td>${df}元</td>
            <td>${wf}元</td>
            <td>${ye}元</td>
        </tr>
       </table>
       </div>`)


    </script>
</body>
</html>